<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table width="50%">
    <thead>
    <th>id</th>
    <th>name</th>
    <th>remark</th>
    <th>createdTime</th>
    <th>operation</th>
    <th>add</th>
    </thead>
    <tbody>
    <tr>
        <td><a th:href="@{/goods/doGoodsAddUI}">添加商品</a></td>
    </tr>
    <tr th:each="good:${list}">
        <td th:text="${good.id}">1</td>
        <td th:text="${good.name}">MySQL</td>
        <td th:text="${good.remark}">DBMS</td>
        <td th:text="${#dates.format(good.createdTime, 'yyyy/MM/dd HH:mm')}">2020/07/03</td>
        <td><a th:href="@{/goods/doDeleteById/{id}(id=${good.id})}">delete</a></td>
        <td><a th:href="@{/goods/doFindById/{id}(id=${good.id})}">Update</a></td>
    </tr>
    </tbody>
</table>
</body>
</html>